<%--
    Document   : anadirAsoc
    Created on : 23-mar-2009, 23:27:33
    Author     : oracle
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es-es" lang="es-es" dir="ltr" >
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="robots" content="index, follow" />
  <meta name="keywords" content="joomla, Joomla" />
  <meta name="description" content="Joomla! - el motor de portales dinámicos y sistema de administración de contenidos" />
  <meta name="generator" content="Joomla! 1.5 - Open Source Content Management" />
  <title>Bancosol - Administración</title>
  <link href="/joomla/administrator/templates/khepri/favicon.ico" rel="shortcut icon" type="image/x-icon" />


<link rel="stylesheet" href="CSS/system.css" type="text/css" />
<link rel="stylesheet" href="CSS/base.css" type="text/css" />
<link href="CSS/login.css" rel="stylesheet" type="text/css" />
<link href="CSS/system.css" rel="stylesheet" type="text/css" />
<link href="CSS/template.css" rel="stylesheet" type="text/css" />
<link href="CSS/icon.css" rel="stylesheet" type="text/css" />
<script src="js/validacion.js" type="text/javascript"></script>
<script src="js/envios.js" type="text/javascript"></script>

<!--[if IE 7]>
<link href="templates/khepri/css/ie7.css" rel="stylesheet" type="text/css" />
<![endif]-->

<!--[if lte IE 6]>
<link href="templates/khepri/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->

	<link rel="stylesheet" type="text/css" href="CSS/rounded.css" />

</head>
<%                  String usuario;
                    String cif;
                    if (request.getSession().getAttribute("usuario") != null){
                            usuario = (String) request.getSession().getAttribute("usuario");
                            cif = (String) request.getSession().getAttribute("cif");
                    }else {
                           usuario = "";
                           cif = "";%>
                           <script language="JavaScript"> window.location.href="index.jsp"</script>
                       <%}
                    %>
<body onload="rellenarFam()">
	<div id="border-top" class="h_purple">
		<div>
			<div>
                <span class="title">                    
                    <%=usuario.toUpperCase()%>
                </span>
			</div>
		</div>
	</div>

    <div id="content-box">
		<div class="border">
			<div class="padding">
                <div id="element-box" class="menu">
				<div id="globalheader" class="home">
                    <!--googleoff: all-->
                    <ul id="globalnav">
                        <li id="gn-bancosol"><a href="">Bancosol</a></li>
                        <li id="gn-inicio"><a href="home.jsp">Inicio</a></li>
                        <% if (request.getSession().getAttribute("usuario") == null){%>
                            <script language="JavaScript"> window.location.href="index.jsp"</script>
                        <%}%>
                        <li id="gn-gestAsoc"><a href="gestAsoc.jsp">Gestión Asociaciones</a></li>
                        <li id="gn-gestUsu"><a href="#" class="selected">Gestión usuarios</a></li>
                        <li id="gn-informes"><a href="informes.jsp">Informes</a></li>
                        <li id="gn-salir"><a href="index.jsp">Salir</a></li>
                    </ul>
                    <!--googleon: all-->
                    <div id="globalsearchAdmin">
                        <form name="busqueda" action="servlets/ConsUsuYFam" method="POST" class="search" id="busqueda">
                            <div>
                                <label for="sp-searchtext">
                                    <span class="prettyplaceholder">Buscar</span>
                                    <input type="search" name="buscar" id="buscar" class="g-prettysearch applesearch" accesskey="s">
                                </label>
                            </div>
                        </form>
                    </div>
                </div>               
			</div>

				<div id="toolbar-box">
   			<div class="t">
				<div class="t">
					<div class="t"></div>
				</div>
			</div>
			<div class="m">
                        <table id="tablaFam" class="adminlist" align="center" cellspacing="1">
                            <thead>
                                <tr>
                                    <th class="tittle" width="10%">
                                        Número Expediente
                                    </th>
                                    <th class="tittle" width="10%">
                                        Parentesco
                                    </th>
                                    <th class="tittle" width="10%">
                                        Nombre
                                    </th>
                                    <th class="tittle" width="10%">
                                        Apellidos
                                    </th>
                                    <th class="tittle" width="10%">
                                        DNI
                                    </th>
                                    <th class="tittle" width="1%">
                                        Eliminar
                                    </th>
                                </tr>
                            </thead>
                            <tbody id="cuerpoTabla">
                                <tr>
                                    <td align="center"><input id="nExp1" type="text" disabled="disabled" class="inputbox"/></td>
                                    <td align="center"><input id="parentesco1" type="text" class="inputbox" /></td>
                                    <td align="center"><input id="nombre1" type="text" class="inputbox" /></td>
                                    <td align="center"><input id="apellidos1" type="text" class="inputbox" /></td>
                                    <td align="center"><input id="dni1" type="text" class="inputbox" /></td>
                                    <td align="center"></td>
                                </tr>
                                <tr>
                                    <td align="center"><input id="nExp2" type="text" disabled="disabled" class="inputbox"/></td>
                                    <td align="center"><input id="parentesco2" type="text" class="inputbox" /></td>
                                    <td align="center"><input id="nombre2" type="text" class="inputbox" /></td>
                                    <td align="center"><input id="apellidos2" type="text" class="inputbox" /></td>
                                    <td align="center"><input id="dni2" type="text" class="inputbox" /></td>
                                    <td align="center"></td>
                                </tr>
                            </tbody>
                        </table>          
				<div class="clr"></div>
                <div align="right"><img src="images/add_16.png" alt="Añadir" onclick="anadirFam();" /></div>
			</div> 
            <div class="b">
				<div class="b">
					<div class="b"></div>
				</div>
			</div>
            <br>
            <div class="button_holder">
                <div class="button1">
                    <div class="next">
                        <a onclick="almacenarDatosFam()">
                            Enviar
                        </a>
                    </div>
                </div>
            </div>
  		</div>
            </div>
        </div>
        
		<noscript>
				¡Advertencia! Debes tener JavaScript habilitado para que la administración funcione correctamente			</noscript>
		<div class="clr"></div>
	</div>
	<div class="clr"></div>

	<div id="border-bottom"><div><div></div></div></div>
	<div id="footer">
		<p class="copyright">
		<a href="http://www.bancosol.es" target="_blank">Bancosol</a>
		- Banco de Alimentos de la Costa del Sol
	</p>
	</div>
</body>
</html>
